<div class="web-sidebar">
	<!-- <div class="your-account-info-sidebar">
		<div class="row">
			<div class="col-xs-2">
				<span class="user-image-sidebar"></span>
			</div>
			<div class="col-xs-10">
				<div class="web-sidebar-user">{{ fullname }}</div>
				<a href="/?cmd=web_logout">
					<div class="text-muted small">
						{{ _("Logout") }}</div>
				</a>
			</div>
		</div>
	</div> -->
	<div class="sidebar-items">
		<ul class="list-unstyled">
			{% if sidebar_title %}
			<li class="title">
				{{ sidebar_title }}
			</li>
			{% endif %}
			{% for item in sidebar_items -%}
			<li class="sidebar-item mb-2">
				<a href="{{ item.route }}" class="{{ 'active' if '/' + pathname==item.route else 'text-muted' }}"
				{% if item.target %}target="{{ item.target }}"{% endif %}>
				{{ _(item.title or item.label) }}
				</a>
			</li>
			{%- endfor %}
			{% if frappe.user != 'Guest' %}
			<li class="sidebar-item mb-2">
				<a href="/me" class="text-muted">{{ _("My Account") }}</a>
			</li>
			{% endif %}
		</ul>
		</div>
</div>


<script>
frappe.ready(function() {
	$('.sidebar-item a').each(function(index) {
	        if(this.href.trim() == window.location)
	            $(this).addClass("active");
	    });
});
</script>
